package com.lkl.demo.service.impl;

import com.lkl.demo.entity.Goods;
import com.lkl.demo.mapper.GoodsMapper;
import com.lkl.demo.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lkl.demo.vo.GoodsVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品表
 *
 * @author likelong
 * @date 2022-07-26
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    /**
     * 查询秒杀商品列表
     */
    @Override
    public List<GoodsVo> findGoodsVo() {
        return baseMapper.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsVoByGoodsId(Long goodsId) {
        return baseMapper.findGoodsVoByGoodsId(goodsId);
    }
}
